home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-06-26 | 2.6 KB | 49 lines | [TEXT/GEOL] |
- Item 0696352 5-June-89 19:51
-
- From: D0420 Satori SW, Hugh Rogovy, PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: RE: Document Cmds & Windows
-
- Curtis,
-
- I agree with you regarding the "incorrect" assumption that a document should be
- closed if all of its windows are closed (hidden). In fact, we have found it
- beneficial (necessary) to create a subclass for TWindow ("TOurWindow") that we
- use here as a default for windows that we create. One of the methods we did
- override was TWindow.CloseByUser for exactly the reason you've specified.
-
- I also agree with you (although not with as much fervor!) regarding documents
- receiving MenuCommand messages without a window being open. I would really
- like to see documents retain control over hiding/showing their own windows, for
- instance, irregardless of the fact that the document has no windows visible or
- frontmost. As it stands now, our application class seems to end up handling
- quite a few commands that would be better handled by the documents they are
- acting upon. It seems that just before (or maybe even after) TApplication gets
- its chance at the command it could pass the message through to any documents
- that haven't yet received it (all documents except gDocument).
- Actually, it seems that you could implement this pretty easily yourself by
- overriding your TYourApplication.DoSetUpMenus method and calling
- TApplication.ForAllDocumentsDo to perform menu setups. Menu commands could be
- taken care of by calling gDocList.FirstThat checking for
- somedoc.DoMenuCommand<>gNoChanges. The only thing that may get you in trouble
- here is the ordering of the documents in gDocList. But if you're careful
-
- As far as taking your comments off-line, I would personally prefer that the
- discussion remained on MacApp.Tech$. I love MacApp, but I also want to see it
- become the best product possible (geez, I sound like an Apple employee), and I
- think everyone can point to something about it that "gets in their way".
- Fortunately, the negatives are truly minimal. I think it's very important that
- we as developers utilize this forum to see that MacApp does reach its full
- potential, especially if it is going to become THE development platform for the
- Macintosh. As long as we can keep the pointless tirades (I hope this isn't
- considered one) to a bare minimum I think MacApp.Tech$ could become very
- valuable in pointing MacApp development in a direction that will satisfy the
- needs (and wants) of the vast majority of Apple developers.
-
-
- Chris Le Croy
- Satori Software
-
-